package cn.edu.scau.dormitory_management_system.service;

import cn.edu.scau.dormitory_management_system.entity.UserEntity;
import cn.edu.scau.dormitory_management_system.entity.UserRoleEntity;
import cn.edu.scau.dormitory_management_system.entity.dto.RoleDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author whj
 */
public interface UserRoleService extends IService<UserRoleEntity> {
    boolean select(int userId,int roleId);
    int authorization(String[]  roleIds, int userId, int createId);
    int register(UserEntity user);
    int update(UserEntity user);
    RoleDto info(int userId);
}
